package com.hpeu_12.day1230;

public class Animal {
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	//Object类是所有类的父类
	//throws：用于抛出异常
	//RuntimeException:表示运行时异常
	protected String show(){
		System.out.println("animal:"+name);
		return null;
	}
}
